package com.ruoyi.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户车辆对象 car_info
 * 
 * @author ruoyi
 * @date 2025-09-15
 */
public class CarInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆主键 */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer uid;

    /** 车型（车辆品牌+车辆类型） */
    @Excel(name = "车型", readConverterExp = "车=辆品牌+车辆类型")
    private String type;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNum;

    /** 车辆照片 */
    @Excel(name = "车辆照片")
    private String carImg;

    /** 删除状态 */
    @Excel(name = "删除状态")
    private Integer deleted;

    /** 是否默认（0非默认、1默认） */
    @Excel(name = "是否默认", readConverterExp = "0=非默认、1默认")
    // TODO 这里数据库中是deleted，这里改为default1，避免冲突
    private Integer default1;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }

    public void setCarImg(String carImg) 
    {
        this.carImg = carImg;
    }

    public String getCarImg() 
    {
        return carImg;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    public void setDefault(Integer default1)
    {
        this.default1 = default1;
    }

    public Integer getDefault() 
    {
        return default1;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("type", getType())
            .append("carNum", getCarNum())
            .append("carImg", getCarImg())
            .append("deleted", getDeleted())
            .append("default", getDefault())
            .toString();
    }
}
